package cn.com.oceansoft.business.os.persistence;

import cn.com.oceansoft.business.base.entity.Query;
import cn.com.oceansoft.business.os.entity.User;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: chenw
 * @time: 2014/4/26 0026 下午 12:54
 */
@Repository
public interface IUserMapper {


    /**
     * 分页加载系统用户数据
     *
     * @param query 查询条件
     * @return List<User>
     */
    List<User> findByCondition(Query query);

    void delete(String userId);

    User findUserById(int userId);

    int updateUser(User user);
}
